package com.hangsu.train.components.dao;

import com.hangsu.train.components.entity.Org;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrgDao {

    int deleteByPrimaryKey(Long id);

    int insert(Org record);

    Org selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Org record);

    int updateByPrimaryKey(Org record);

    List<Org> getALL();

    int incLeft(@Param("left") int left);

    int incRight(@Param("left") int left);

    int reduceLeft(@Param("right")int right,@Param("width") int width);

    int reduceRight(@Param("right") int right,@Param("width") int width);

    int del(@Param("left") int left,@Param("right") int right);
}
